package com.ljkj.access;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the torganization database table.
 * 
 */
@Entity
@Table(name="torganization")
@NamedQuery(name="Torganization.findAll", query="SELECT t FROM Torganization t")
public class Torganization implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="to_id")
	private int toId;

	private String description;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="gen_time")
	private Date genTime;

	@Column(name="org_name")
	private String orgName;

	@Column(name="parent_to_id")
	private int parentToId;

	public Torganization() {
	}

	public int getToId() {
		return this.toId;
	}

	public void setToId(int toId) {
		this.toId = toId;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getGenTime() {
		return this.genTime;
	}

	public void setGenTime(Date genTime) {
		this.genTime = genTime;
	}

	public String getOrgName() {
		return this.orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public int getParentToId() {
		return this.parentToId;
	}

	public void setParentToId(int parentToId) {
		this.parentToId = parentToId;
	}

}